package com.zmn.oms.persistence.interfaces.worktrack;

import com.zmn.oms.model.entity.omstrack.OrderWorkTrack;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @ClassName OmsTrackDao
 * @description:
 * @author: wangyanci
 * @create: 2021-05-12 18:35
 * @Version 1.0
 **/
public interface WorkTrackDao {

    void delete(@Param("orderId") Long orderId,@Param("workId") Long workId,@Param("trackType") Integer trackType);

    void insert(OrderWorkTrack orderWorkTrack);

    OrderWorkTrack getWorkTrackByTrackType(@Param("orderId") Long orderId, @Param("workId") Long workId, @Param("trackType") Integer trackType);

    List<OrderWorkTrack> queryListByOrderId(@Param("orderId") Long orderId, @Param("workId") Long workId);

    List<OrderWorkTrack> queryListByOrderIds(@Param("orderIds") Collection<Long> orderIds);

    List<OrderWorkTrack> getWorkTrackByTrackTypeList(@Param("orderId") Long orderId, @Param("workId") Long workId, @Param("trackTypeList") List<Integer> trackTypeList);
}
